//
//  ICListView.h
//  iCarStyle
//
//  Created by liu nian on 14-5-4.
//  Copyright (c) 2014年 liunian. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Article.h"
#import "ReqObject.h"

@class PicModel;
typedef enum {
    XTListViewTypeTableViewCell,
    XTListViewTypeCollectionCell

}XTListViewType;

@protocol ICListViewDelegate;
@interface ICListView : UIView
@property (nonatomic, assign) id<ICListViewDelegate> delegate;

- (id)initWithFrame:(CGRect)frame type:(XTListViewType)type catalog:(CatalogType)catalogType;
- (void)reloadWithCatalog:(CatalogType)catalogType;
- (void)viewWillAppear;
@end

@protocol ICListViewDelegate <NSObject>
@optional
- (void)listView:(ICListView *)listView didSelectArticle:(id)object atIndex:(NSInteger)index;
- (void)listView:(ICListView *)listView didSelectPicModel:(PicModel *)pic pictures:(NSArray *)pictures atIndex:(NSInteger)index;
@end
